package com.augus.admin.mapper;

import com.augus.admin.bean.TUserRole;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;
import org.apache.ibatis.annotations.Select;

//@Mapper
public interface TUserRoleMapper {

  @Select("select * from t_user_role where id = #{id}")
  public TUserRole getById(Integer id);

  @Insert(" insert into t_user_role (`user_id`,`role_id`,`create_date`,`update_date`) values (#{userId},#{roleId},#{createDate},#{updateDate})")
  @Options(useGeneratedKeys = true, keyProperty = "id")
  public void insert(TUserRole tUserRole);
}
